//home_8
// displays  !0 values (and index) of arrea
#include<iostream>

int main()
{
	const int n=10;
	int arrea[10]={0};
	
	std::cout << "Enter number: " << std::endl;

	for( int i=0; i<n; ++i )
	{
		std::cin >> arrea[i];
	}
	for( int i=0; i<n; ++i )
	{
		if( 0 == arrea[i] ) continue;
		std::cout << arrea[i] << "\t" << i << std::endl;
	}
	return 0;
}